package com.heima.wemedia.controller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dto.WmUserDTO;
import com.heima.wemedia.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/login")
public class LoginController {
    @Autowired
    private LoginService loginService;

    /*
    * todo 自媒体用户登录
    *  */
    @PostMapping("/in")
    public ResponseResult login(@RequestBody WmUserDTO wmUserDTO){
        return this.loginService.login(wmUserDTO);
    }
}
